/*
https://github.com/raphaelfabeni/css-loader
*/

.loader, .k-loading-image {
    color: #fff;
    position: fixed;
    box-sizing: border-box;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: 999999
}

.loader:after,
.loader:before {
    box-sizing: border-box;
    display: none
}

.loader.is-active, .k-loading-image {
    background-color: rgba(0, 0, 0, .40);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

.k-loading-image {
    background-color: inherit;
    color: red;
}

.loader.is-active:after,
.loader.is-active:before {
    display: block
}

@keyframes rotation {
    0% {
        transform: rotate(0)
    }
    to {
        transform: rotate(359deg)
    }
}

@keyframes blink {
    0% {
        opacity: .5
    }
    to {
        opacity: 1
    }
}

.loader[data-text]:before {
    position: fixed;
    left: 0;
    top: 50%;
    color: currentColor;
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    width: 100%;
    font-size: 24px
}

.loader[data-text=""]:before {
    content: "Loading"
}

.loader[data-text]:not([data-text=""]):before {
    content: attr(data-text)
}

.loader[data-text][data-blink]:before {
    animation: blink 1s linear infinite alternate
}

.loader-default[data-text]:before {
    top: calc(50% - 143px)
}

.loader-default:after, .k-loading-image:after {
    content: "";
    position: fixed;
    width: 128px;
    height: 128px;
    border: 16px solid #fff;
    border-left-color: transparent;
    border-radius: 50%;
    top: calc(50% - 64px);
    left: calc(50% - 64px);
    animation: rotation 1s linear infinite
}

.k-loading-image:after {
    border: 8px solid red;
    border-left-color: transparent;
}

.k-loading-image::before {
    width: 0;
    height: 0;
}

.loader-default[data-half]:after {
    border-right-color: transparent
}

.loader-default[data-inverse]:after {
    animation-direction: reverse
}